package com.qjc.bean;

import java.util.Date;
import java.util.List;

public class Employee {
    private int empId;
    private String empName;
    private int postId;
    private Date date;
    private double salary;
    private int mgr_pId;
    private int departId;
    private  Employee manager;

    public Employee getManager() {
        return manager;
    }

    public void setManager(Employee manager) {
        this.manager = manager;
    }

    public int getEmpId() {
        return empId;
    }

    public void setEmpId(int empId) {
        this.empId = empId;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public int getPostId() {
        return postId;
    }

    public void setPostId(int postId) {
        this.postId = postId;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public int getMgr_pId() {
        return mgr_pId;
    }

    public void setMgr_pId(int mgr_pId) {
        this.mgr_pId = mgr_pId;
    }

    public int getDepartId() {
        return departId;
    }

    public void setDepartId(int departId) {
        this.departId = departId;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "empId=" + empId +
                ", empName='" + empName + '\'' +
                ", postId=" + postId +
                ", date=" + date +
                ", salary=" + salary +
                ", mgr_pId=" + mgr_pId +
                ", departId=" + departId +
                '}';
    }

    public Employee(String empName, int postId, Date date, double salary, int mgr_pId, int departId) {
        this.empName = empName;
        this.postId = postId;
        this.date = date;
        this.salary = salary;
        this.mgr_pId = mgr_pId;
        this.departId = departId;
    }

    public Employee() {
    }
}
